﻿//------------------------------------------------------------------------------
// <copyright file="RequestTemplatePropertyDefinition.cs" company="CommerceServer.net, Inc">
//    (c) 2012 CommerceServer.net, Inc. and its affiliates. All rights reserved.
// </copyright>
// <summary></summary>
//------------------------------------------------------------------------------ 
namespace CommerceServerContrib.CodeGeneration
{
    using CommerceServer.Foundation.RequestTemplates;

    public class RequestTemplatePropertyDefinition : SimplifiedPropertyDefinition
    {
        public RequestTemplatePropertyDefinition(
            RequestTemplateParameterType parameterType,
            string name, 
            string designTimeType,
            string alias)
        {
            this.ArgumentType = parameterType;
            this.Name = name;
            this.DesignTimeType = designTimeType;
            this.RuntimeType = this.ConvertType(this.DesignTimeType);
            this.WeaklyTypedName = alias;
        }

        public RequestTemplateParameterType ArgumentType { get; set; }
    }
}
